
import {postRequest, getRequest, getDownload} from '/@/lib/axios';
export const getCurrencyList = () => {
  return getRequest('/currency/listAll');
};
export const getCurrencyListByEmployeeId = (params) => {
  return getRequest('/currency/listByEmployeeId', params);
};

/**
 * 更新生成链接记录
 * @param {Object} data - 更新数据
 * @returns {Promise}
 */
export const updateGenerateLinkRecord = (data) => {
  return postRequest('/paymentLink/update', data);
};

/**
 * 分页查询生成链接记录
 * @param {Object} params - 查询参数
 * @returns {Promise}
 */
export const queryPageGenerateLinkRecord = (params) => {
  return postRequest('/paymentLink/queryPage', params);
};

/**
 * 添加生成链接记录
 * @param {Object} data - 添加数据
 * @returns {Promise}
 */
export const addGenerateLinkRecord = (data) => {
  return postRequest('/paymentLink/add', data);
};
